<?php
require 'SegmentTree.php';

class Merge
{
    public function operate($left, $right)
    {
        return $left + $right;
    }
}

$merge = new Merge();

$arr = [0,1,2,3,4,5,6,7,8,9];
$merge = new Merge();
$segmentTree = new SegmentTree($arr,$merge);

echo $segmentTree->query(2,6);


